<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
	</body>
</html>
<script type="text/javascript">
	// es6引入rest参数代替arguments
	// arguments返回为数组
	function date(){
		console.log(arguments)
	}
	date('a','b','c');
	// rest 参数，返回数组
	function date2(...args){
		console.log(args)
	}
	date2('e','f','g')
	// rest参数要放在参数最后
	function fn(a,b,...args){
		console.log(a);
		console.log(b);
		console.log(args)
	}
	fn(1,2,3,4,5,6)
	
</script>
